﻿
namespace ZR.Model.Dto.Business.ProductionControl
{
    /// <summary>
    /// 夹具信息查询对象
    /// </summary>
    public class CksFixtureinfoQueryDto : PagerInfo
    {
        public int? FixtureId { get; set; } = 0;
    }

    /// <summary>
    /// 夹具信息输入输出对象
    /// </summary>
    public class CksFixtureinfoDto
    {
        [Required(ErrorMessage = "主键不能为空")]
        public int Id { get; set; }

        [Required(ErrorMessage = "夹具编号不能为空")]
        public int FixtureId { get; set; }

        [Required(ErrorMessage = "架子编号不能为空")]
        public int ShelfId { get; set; }

        [Required(ErrorMessage = "位置编号不能为空")]
        public int LocationId { get; set; }

        [Required(ErrorMessage = "状态不能为空")]
        public int Status { get; set; }

        [Required(ErrorMessage = "使用次数不能为空")]
        public int UsageCount { get; set; }

        [Required(ErrorMessage = "最大使用次数不能为空")]
        public int MaxUsageCount { get; set; }


        public int CellId {  get; set; }


        public bool Nullity { get; set; }


        public string Remark { get; set; } = string.Empty;


        public DateTime? Created { get; set; } = DateTime.Now;

        
        public bool IsDeleted { get; set; }



        [ExcelColumn(Name = "状态")]
        public string StatusLabel { get; set; }

        public DateTime UpdateTime { get; set; }
    }
}